package com.example.depressionapp;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

//5.30进度：
//不同问卷的处理
//11:22 获取了选项信息 并存入答案List

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btn_test;//心理健康测试按钮
    private Button btn_evaluate;//心肺耐力评估
    private Button btn_report;//结果分析报告


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initView();


    }

    private void initView(){

        btn_test = findViewById(R.id.btn_test);
        btn_evaluate = findViewById(R.id.btn_evaluate);
        btn_report = findViewById(R.id.btn_report);

        btn_test.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_test:
                Intent intent = new Intent(this, TestActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_evaluate:

        }
    }
}


